﻿<?php
//$redis = new \Redis;
//$redis->connect('10.211.11.152', '6379');
//$redis->auth('11222');

$redis = new \Redis();
//$redis->connect('127.0.0.1', 6379); //连接Redis
//$redis->auth('mypasswords123sdfeak'); //密码验证
//$redis->select(2);//选择数据库2
//$redis->set( "testKey" , "Hello Redis"); //设置测试key
//echo $redis->get("testKey");//订单输出value